package com.ptszyxx.popose.module.base.password;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.Nullable;
import androidx.lifecycle.ViewModelProviders;

import com.ptszyxx.popose.BR;
import com.ptszyxx.popose.R;
import com.ptszyxx.popose.databinding.FragmentPasswordBinding;
import com.ptszyxx.popose.module.base.password.vm.PasswordVM;
import com.ysg.base.BaseFragment;
import com.ysg.http.data.AppViewModelFactory;

public class PasswordFragment extends BaseFragment<FragmentPasswordBinding, PasswordVM> {
    public static PasswordFragment getInstance() {
        return new PasswordFragment();
    }

    @Override
    public int initContentView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return R.layout.fragment_password;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public PasswordVM initViewModel() {
        AppViewModelFactory factory = AppViewModelFactory.getInstance(getActivity().getApplication());
        return ViewModelProviders.of(this, factory).get(PasswordVM.class);
    }


}
